date=input("请输入今天的日期:")
weather=input("请输入今天的天气：")
con=input("请输入一行今天的总结:")
with open("diary.txt","a",encoding="UTF-8") as f:
    f.write(f"{date} {weather}\n")
    f.write(f"{con.replace('，','\n\n')}")
print("今日日记已追加")